Optimal. Leaf size=133 \[ -\frac {b^3}{(b d-a e)^4 (a+b x)}-\frac {e}{3 (b d-a e)^2 (d+e x)^3}-\frac {b e}{(b d-a e)^3 (d+e x)^2}-\frac {3 b^2 e}{(b d-a e)^4 (d+e x)}-\frac {4 b^3 e \log (a+b x)}{(b d-a e)^5}+\frac {4 b^3 e \log (d+e x)}{(b d-a e)^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {27, 46}
\begin {gather*} -\frac {b^3}{(a+b x) (b d-a e)^4}-\frac {4 b^3 e \log (a+b x)}{(b d-a e)^5}+\frac {4 b^3 e \log (d+e x)}{(b d-a e)^5}-\frac {3 b^2 e}{(d+e x) (b d-a e)^4}-\frac {b e}{(d+e x)^2 (b d-a e)^3}-\frac {e}{3 (d+e x)^3 (b d-a e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 46
Rubi steps
\begin {align*} \int \frac {1}{(d+e x)^4 \left (a^2+2 a b x+b^2 x^2\right )} \, dx &=\int \frac {1}{(a+b x)^2 (d+e x)^4} \, dx\\ &=\int \left (\frac {b^4}{(b d-a e)^4 (a+b x)^2}-\frac {4 b^4 e}{(b d-a e)^5 (a+b x)}+\frac {e^2}{(b d-a e)^2 (d+e x)^4}+\frac {2 b e^2}{(b d-a e)^3 (d+e x)^3}+\frac {3 b^2 e^2}{(b d-a e)^4 (d+e x)^2}+\frac {4 b^3 e^2}{(b d-a e)^5 (d+e x)}\right ) \, dx\\ &=-\frac {b^3}{(b d-a e)^4 (a+b x)}-\frac {e}{3 (b d-a e)^2 (d+e x)^3}-\frac {b e}{(b d-a e)^3 (d+e x)^2}-\frac {3 b^2 e}{(b d-a e)^4 (d+e x)}-\frac {4 b^3 e \log (a+b x)}{(b d-a e)^5}+\frac {4 b^3 e \log (d+e x)}{(b d-a e)^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 120, normalized size = 0.90 \begin {gather*} \frac {-\frac {3 b^3 (b d-a e)}{a+b x}+\frac {e (-b d+a e)^3}{(d+e x)^3}-\frac {3 b e (b d-a e)^2}{(d+e x)^2}-\frac {9 b^2 e (b d-a e)}{d+e x}-12 b^3 e \log (a+b x)+12 b^3 e \log (d+e x)}{3 (b d-a e)^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.71, size = 131, normalized size = 0.98
method | result | size |
default | \(-\frac {b^{3}}{\left (a e -b d \right )^{4} \left (b x +a \right )}+\frac {4 b^{3} e \ln \left (b x +a \right )}{\left (a e -b d \right )^{5}}-\frac {e}{3 \left (a e -b d \right )^{2} \left (e x +d \right )^{3}}-\frac {4 b^{3} e \ln \left (e x +d \right )}{\left (a e -b d \right )^{5}}-\frac {3 e \,b^{2}}{\left (a e -b d \right )^{4} \left (e x +d \right )}+\frac {e b}{\left (a e -b d \right )^{3} \left (e x +d \right )^{2}}\) | \(131\) |
risch | \(\frac {-\frac {4 b^{3} e^{3} x^{3}}{e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}}-\frac {2 e^{2} \left (a e +5 b d \right ) b^{2} x^{2}}{e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}}+\frac {2 \left (a^{2} e^{2}-8 a b d e -11 b^{2} d^{2}\right ) b e x}{3 \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}-\frac {e^{3} a^{3}-5 a^{2} b d \,e^{2}+13 a \,b^{2} d^{2} e +3 b^{3} d^{3}}{3 \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}}{\left (e x +d \right )^{3} \left (b x +a \right )}-\frac {4 e \,b^{3} \ln \left (e x +d \right )}{a^{5} e^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}}+\frac {4 e \,b^{3} \ln \left (-b x -a \right )}{a^{5} e^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}}\) | \(476\) |
norman | \(\frac {-\frac {4 b^{3} e^{3} x^{3}}{e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}}+\frac {\left (-2 a \,b^{3} e^{5}-10 b^{4} d \,e^{4}\right ) x^{2}}{e^{2} b \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}+\frac {-a^{3} b \,e^{6}+5 a^{2} b^{2} d \,e^{5}-13 a \,b^{3} d^{2} e^{4}-3 b^{4} d^{3} e^{3}}{3 e^{3} b \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}+\frac {\left (2 a^{2} b^{2} e^{6}-16 a \,b^{3} d \,e^{5}-22 b^{4} d^{2} e^{4}\right ) x}{3 e^{3} b \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}}{\left (e x +d \right )^{3} \left (b x +a \right )}+\frac {4 e \,b^{3} \ln \left (b x +a \right )}{a^{5} e^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}}-\frac {4 e \,b^{3} \ln \left (e x +d \right )}{a^{5} e^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}}\) | \(513\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 571 vs.
\(2 (146) = 292\).
time = 0.30, size = 571, normalized size = 4.29 \begin {gather*} -\frac {4 \, b^{3} e \log \left (b x + a\right )}{b^{5} d^{5} - 5 \, a b^{4} d^{4} e + 10 \, a^{2} b^{3} d^{3} e^{2} - 10 \, a^{3} b^{2} d^{2} e^{3} + 5 \, a^{4} b d e^{4} - a^{5} e^{5}} + \frac {4 \, b^{3} e \log \left (x e + d\right )}{b^{5} d^{5} - 5 \, a b^{4} d^{4} e + 10 \, a^{2} b^{3} d^{3} e^{2} - 10 \, a^{3} b^{2} d^{2} e^{3} + 5 \, a^{4} b d e^{4} - a^{5} e^{5}} - \frac {12 \, b^{3} x^{3} e^{3} + 3 \, b^{3} d^{3} + 13 \, a b^{2} d^{2} e - 5 \, a^{2} b d e^{2} + a^{3} e^{3} + 6 \, {\left (5 \, b^{3} d e^{2} + a b^{2} e^{3}\right )} x^{2} + 2 \, {\left (11 \, b^{3} d^{2} e + 8 \, a b^{2} d e^{2} - a^{2} b e^{3}\right )} x}{3 \, {\left (a b^{4} d^{7} - 4 \, a^{2} b^{3} d^{6} e + 6 \, a^{3} b^{2} d^{5} e^{2} - 4 \, a^{4} b d^{4} e^{3} + a^{5} d^{3} e^{4} + {\left (b^{5} d^{4} e^{3} - 4 \, a b^{4} d^{3} e^{4} + 6 \, a^{2} b^{3} d^{2} e^{5} - 4 \, a^{3} b^{2} d e^{6} + a^{4} b e^{7}\right )} x^{4} + {\left (3 \, b^{5} d^{5} e^{2} - 11 \, a b^{4} d^{4} e^{3} + 14 \, a^{2} b^{3} d^{3} e^{4} - 6 \, a^{3} b^{2} d^{2} e^{5} - a^{4} b d e^{6} + a^{5} e^{7}\right )} x^{3} + 3 \, {\left (b^{5} d^{6} e - 3 \, a b^{4} d^{5} e^{2} + 2 \, a^{2} b^{3} d^{4} e^{3} + 2 \, a^{3} b^{2} d^{3} e^{4} - 3 \, a^{4} b d^{2} e^{5} + a^{5} d e^{6}\right )} x^{2} + {\left (b^{5} d^{7} - a b^{4} d^{6} e - 6 \, a^{2} b^{3} d^{5} e^{2} + 14 \, a^{3} b^{2} d^{4} e^{3} - 11 \, a^{4} b d^{3} e^{4} + 3 \, a^{5} d^{2} e^{5}\right )} x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 727 vs.
\(2 (146) = 292\).
time = 3.77, size = 727, normalized size = 5.47 \begin {gather*} -\frac {3 \, b^{4} d^{4} - {\left (12 \, a b^{3} x^{3} + 6 \, a^{2} b^{2} x^{2} - 2 \, a^{3} b x + a^{4}\right )} e^{4} + 6 \, {\left (2 \, b^{4} d x^{3} - 4 \, a b^{3} d x^{2} - 3 \, a^{2} b^{2} d x + a^{3} b d\right )} e^{3} + 6 \, {\left (5 \, b^{4} d^{2} x^{2} - a b^{3} d^{2} x - 3 \, a^{2} b^{2} d^{2}\right )} e^{2} + 2 \, {\left (11 \, b^{4} d^{3} x + 5 \, a b^{3} d^{3}\right )} e + 12 \, {\left ({\left (b^{4} x^{4} + a b^{3} x^{3}\right )} e^{4} + 3 \, {\left (b^{4} d x^{3} + a b^{3} d x^{2}\right )} e^{3} + 3 \, {\left (b^{4} d^{2} x^{2} + a b^{3} d^{2} x\right )} e^{2} + {\left (b^{4} d^{3} x + a b^{3} d^{3}\right )} e\right )} \log \left (b x + a\right ) - 12 \, {\left ({\left (b^{4} x^{4} + a b^{3} x^{3}\right )} e^{4} + 3 \, {\left (b^{4} d x^{3} + a b^{3} d x^{2}\right )} e^{3} + 3 \, {\left (b^{4} d^{2} x^{2} + a b^{3} d^{2} x\right )} e^{2} + {\left (b^{4} d^{3} x + a b^{3} d^{3}\right )} e\right )} \log \left (x e + d\right )}{3 \, {\left (b^{6} d^{8} x + a b^{5} d^{8} - {\left (a^{5} b x^{4} + a^{6} x^{3}\right )} e^{8} + {\left (5 \, a^{4} b^{2} d x^{4} + 2 \, a^{5} b d x^{3} - 3 \, a^{6} d x^{2}\right )} e^{7} - {\left (10 \, a^{3} b^{3} d^{2} x^{4} - 5 \, a^{4} b^{2} d^{2} x^{3} - 12 \, a^{5} b d^{2} x^{2} + 3 \, a^{6} d^{2} x\right )} e^{6} + {\left (10 \, a^{2} b^{4} d^{3} x^{4} - 20 \, a^{3} b^{3} d^{3} x^{3} - 15 \, a^{4} b^{2} d^{3} x^{2} + 14 \, a^{5} b d^{3} x - a^{6} d^{3}\right )} e^{5} - 5 \, {\left (a b^{5} d^{4} x^{4} - 5 \, a^{2} b^{4} d^{4} x^{3} + 5 \, a^{4} b^{2} d^{4} x - a^{5} b d^{4}\right )} e^{4} + {\left (b^{6} d^{5} x^{4} - 14 \, a b^{5} d^{5} x^{3} + 15 \, a^{2} b^{4} d^{5} x^{2} + 20 \, a^{3} b^{3} d^{5} x - 10 \, a^{4} b^{2} d^{5}\right )} e^{3} + {\left (3 \, b^{6} d^{6} x^{3} - 12 \, a b^{5} d^{6} x^{2} - 5 \, a^{2} b^{4} d^{6} x + 10 \, a^{3} b^{3} d^{6}\right )} e^{2} + {\left (3 \, b^{6} d^{7} x^{2} - 2 \, a b^{5} d^{7} x - 5 \, a^{2} b^{4} d^{7}\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 882 vs.
\(2 (117) = 234\).
time = 1.32, size = 882, normalized size = 6.63 \begin {gather*} - \frac {4 b^{3} e \log {\left (x + \frac {- \frac {4 a^{6} b^{3} e^{7}}{\left (a e - b d\right )^{5}} + \frac {24 a^{5} b^{4} d e^{6}}{\left (a e - b d\right )^{5}} - \frac {60 a^{4} b^{5} d^{2} e^{5}}{\left (a e - b d\right )^{5}} + \frac {80 a^{3} b^{6} d^{3} e^{4}}{\left (a e - b d\right )^{5}} - \frac {60 a^{2} b^{7} d^{4} e^{3}}{\left (a e - b d\right )^{5}} + \frac {24 a b^{8} d^{5} e^{2}}{\left (a e - b d\right )^{5}} + 4 a b^{3} e^{2} - \frac {4 b^{9} d^{6} e}{\left (a e - b d\right )^{5}} + 4 b^{4} d e}{8 b^{4} e^{2}} \right )}}{\left (a e - b d\right )^{5}} + \frac {4 b^{3} e \log {\left (x + \frac {\frac {4 a^{6} b^{3} e^{7}}{\left (a e - b d\right )^{5}} - \frac {24 a^{5} b^{4} d e^{6}}{\left (a e - b d\right )^{5}} + \frac {60 a^{4} b^{5} d^{2} e^{5}}{\left (a e - b d\right )^{5}} - \frac {80 a^{3} b^{6} d^{3} e^{4}}{\left (a e - b d\right )^{5}} + \frac {60 a^{2} b^{7} d^{4} e^{3}}{\left (a e - b d\right )^{5}} - \frac {24 a b^{8} d^{5} e^{2}}{\left (a e - b d\right )^{5}} + 4 a b^{3} e^{2} + \frac {4 b^{9} d^{6} e}{\left (a e - b d\right )^{5}} + 4 b^{4} d e}{8 b^{4} e^{2}} \right )}}{\left (a e - b d\right )^{5}} + \frac {- a^{3} e^{3} + 5 a^{2} b d e^{2} - 13 a b^{2} d^{2} e - 3 b^{3} d^{3} - 12 b^{3} e^{3} x^{3} + x^{2} \left (- 6 a b^{2} e^{3} - 30 b^{3} d e^{2}\right ) + x \left (2 a^{2} b e^{3} - 16 a b^{2} d e^{2} - 22 b^{3} d^{2} e\right )}{3 a^{5} d^{3} e^{4} - 12 a^{4} b d^{4} e^{3} + 18 a^{3} b^{2} d^{5} e^{2} - 12 a^{2} b^{3} d^{6} e + 3 a b^{4} d^{7} + x^{4} \cdot \left (3 a^{4} b e^{7} - 12 a^{3} b^{2} d e^{6} + 18 a^{2} b^{3} d^{2} e^{5} - 12 a b^{4} d^{3} e^{4} + 3 b^{5} d^{4} e^{3}\right ) + x^{3} \cdot \left (3 a^{5} e^{7} - 3 a^{4} b d e^{6} - 18 a^{3} b^{2} d^{2} e^{5} + 42 a^{2} b^{3} d^{3} e^{4} - 33 a b^{4} d^{4} e^{3} + 9 b^{5} d^{5} e^{2}\right ) + x^{2} \cdot \left (9 a^{5} d e^{6} - 27 a^{4} b d^{2} e^{5} + 18 a^{3} b^{2} d^{3} e^{4} + 18 a^{2} b^{3} d^{4} e^{3} - 27 a b^{4} d^{5} e^{2} + 9 b^{5} d^{6} e\right ) + x \left (9 a^{5} d^{2} e^{5} - 33 a^{4} b d^{3} e^{4} + 42 a^{3} b^{2} d^{4} e^{3} - 18 a^{2} b^{3} d^{5} e^{2} - 3 a b^{4} d^{6} e + 3 b^{5} d^{7}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 337 vs.
\(2 (146) = 292\).
time = 1.71, size = 337, normalized size = 2.53 \begin {gather*} -\frac {4 \, b^{4} e \log \left ({\left | b x + a \right |}\right )}{b^{6} d^{5} - 5 \, a b^{5} d^{4} e + 10 \, a^{2} b^{4} d^{3} e^{2} - 10 \, a^{3} b^{3} d^{2} e^{3} + 5 \, a^{4} b^{2} d e^{4} - a^{5} b e^{5}} + \frac {4 \, b^{3} e^{2} \log \left ({\left | x e + d \right |}\right )}{b^{5} d^{5} e - 5 \, a b^{4} d^{4} e^{2} + 10 \, a^{2} b^{3} d^{3} e^{3} - 10 \, a^{3} b^{2} d^{2} e^{4} + 5 \, a^{4} b d e^{5} - a^{5} e^{6}} - \frac {3 \, b^{4} d^{4} + 10 \, a b^{3} d^{3} e - 18 \, a^{2} b^{2} d^{2} e^{2} + 6 \, a^{3} b d e^{3} - a^{4} e^{4} + 12 \, {\left (b^{4} d e^{3} - a b^{3} e^{4}\right )} x^{3} + 6 \, {\left (5 \, b^{4} d^{2} e^{2} - 4 \, a b^{3} d e^{3} - a^{2} b^{2} e^{4}\right )} x^{2} + 2 \, {\left (11 \, b^{4} d^{3} e - 3 \, a b^{3} d^{2} e^{2} - 9 \, a^{2} b^{2} d e^{3} + a^{3} b e^{4}\right )} x}{3 \, {\left (b d - a e\right )}^{5} {\left (b x + a\right )} {\left (x e + d\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.85, size = 534, normalized size = 4.02 \begin {gather*} \frac {8\,b^3\,e\,\mathrm {atanh}\left (\frac {a^5\,e^5-3\,a^4\,b\,d\,e^4+2\,a^3\,b^2\,d^2\,e^3+2\,a^2\,b^3\,d^3\,e^2-3\,a\,b^4\,d^4\,e+b^5\,d^5}{{\left (a\,e-b\,d\right )}^5}+\frac {2\,b\,e\,x\,\left (a^4\,e^4-4\,a^3\,b\,d\,e^3+6\,a^2\,b^2\,d^2\,e^2-4\,a\,b^3\,d^3\,e+b^4\,d^4\right )}{{\left (a\,e-b\,d\right )}^5}\right )}{{\left (a\,e-b\,d\right )}^5}-\frac {\frac {a^3\,e^3-5\,a^2\,b\,d\,e^2+13\,a\,b^2\,d^2\,e+3\,b^3\,d^3}{3\,\left (a^4\,e^4-4\,a^3\,b\,d\,e^3+6\,a^2\,b^2\,d^2\,e^2-4\,a\,b^3\,d^3\,e+b^4\,d^4\right )}+\frac {4\,b^3\,e^3\,x^3}{a^4\,e^4-4\,a^3\,b\,d\,e^3+6\,a^2\,b^2\,d^2\,e^2-4\,a\,b^3\,d^3\,e+b^4\,d^4}+\frac {2\,b^2\,x^2\,\left (a\,e^3+5\,b\,d\,e^2\right )}{a^4\,e^4-4\,a^3\,b\,d\,e^3+6\,a^2\,b^2\,d^2\,e^2-4\,a\,b^3\,d^3\,e+b^4\,d^4}+\frac {2\,b\,x\,\left (-a^2\,e^3+8\,a\,b\,d\,e^2+11\,b^2\,d^2\,e\right )}{3\,\left (a^4\,e^4-4\,a^3\,b\,d\,e^3+6\,a^2\,b^2\,d^2\,e^2-4\,a\,b^3\,d^3\,e+b^4\,d^4\right )}}{x^3\,\left (a\,e^3+3\,b\,d\,e^2\right )+x^2\,\left (3\,b\,d^2\,e+3\,a\,d\,e^2\right )+a\,d^3+x\,\left (b\,d^3+3\,a\,e\,d^2\right )+b\,e^3\,x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________